package cn.lyvust.shili06;

/**
 * Description:
 * date: 2021-4-13 14:01
 *
 * @author Guo_guo
 * @since JDK 1.8
 */
public class Test {
    public static void main(String[] args) {
        Host host=new Host();
        Animal animal;
        animal=host.donateAnimal("dog");
        animal.cry();//狗叫
        animal=host.donateAnimal("cat");
        animal.cry();//猫叫
    }
}
